<template>
  <el-container class="layout-container-demo">
    <!-- 左-侧边栏 -->
    <el-aside
      width="200px"
      style="height: 100vh; border-right: 1px solid #dbdbdb"
    >
      <sider-bar-vue></sider-bar-vue>
    </el-aside>
    <!-- 右 -->
    <el-container>
      <!-- 头部导航 -->
      <el-header style="text-align: right; font-size: 12px">
        <header-bar-vue></header-bar-vue>
      </el-header>
      <!-- 主体内容 -->
      <el-main>
        <!--        表示当前页面的子路由会在 <router-view /> 里面展示-->
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup>
import siderBarVue from '@/views/layout/components/sider-bar.vue'
import headerBarVue from '@/views/layout/components/header-bar.vue'
</script>

<style lang="scss" scoped>
.layout-container-demo {
  .el-header {
    position: relative;
    color: var(--el-text-color-primary);
    border-bottom: 1px solid #dbdbdb;
    margin-bottom: 20px;
    box-shadow: 0 5px 5px -5px rgba($color: #000000, $alpha: 0.3);
  }
  .el-aside {
    height: 100vh;
    color: var(--el-text-color-primary);
  }
  .el-menu {
    border-right: none;
  }

  .toolbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    right: 20px;
  }
}
</style>
